package com.hyq.learn.rabbitmq.message;

import com.hyq.learn.common.util.SnowFlake;

/**
 * @author heyuqin
 * @date 2024/8/26 15:03
 */
public class BaseMessage {

    private String messageId;

    public BaseMessage() {
        this.messageId = String.valueOf(SnowFlake.newInstance("message_id").nextId());
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }


}
